package com.yequan.bird;

/**
 * @author yequan
 * @date 2021/08/07 18:52
 **/
public class MaqueBird2 implements FlyBird, DownEgg {

    private DownEgg downEgg;

    public MaqueBird2() {
        this.downEgg = new DownEggPower();
    }

    @Override
    public String name() {
        return "麻雀";
    }

    @Override
    public void downEgg() {
        downEgg.downEgg();
    }
}
